{extend name="public/base"}

{block name="title"}
个性签名
{/block}

{block name="style"}
{css href="/static/wechat/css/center.css" /}
{/block}

{block name="body"}
<div class="pageControl signature save_member_role_info">
    <div class="msui_nav msui_navTop">
        <a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>
        <h1 class="msui_navTop-title">{$field|get_member_role_info_title}</h1>
        <a href="javascript:;" class="msui_navTop-login member_form">保存</a>
    </div>
    <div class="weui-top">
        <div class="weui-cells weui-cells_form">
            <form action="{:url('save_member_role_info')}" method="post" id="form">
                {eq name="field" value="signature"}
                <div class="weui-cell">
                    <div class="weui-cell__bd">
                        <textarea class="weui-textarea js-textarea" placeholder="请输入文本" rows="3" name="value">{$value}</textarea>
                        <div class="weui-textarea-counter js-tNum"><span>0</span>/30</div>
                    </div>
                </div>
                {/eq}
                {eq name="field" value="phone"}
                <div class="weui-cells weui-cells_form">
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">电话号码</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="member" name="value" placeholder="请输入电话号码" value="{$value}">
                        </div>
                    </div>
                </div>
                {/eq}
                {eq name="field" value="nickname"}
                <div class="weui-cells weui-cells_form">
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">昵称</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="text" name="value" value="{$value}" placeholder="4-20个字，可由中英文或数字组成">
                        </div>
                    </div>
                </div>
                {/eq}
                {eq name="field" value="sex"}
                <div class="weui-cells weui-cells_checkbox">
                    <label class="weui-cell weui-check__label" for="s11">
                        <div class="weui-cell__hd">
                            <input type="radio" name="value" value="1" class="weui-check" id="s11" {eq name="value" value="1"} checked{/eq}>
                            <i class="weui-icon-checked"></i>
                        </div>
                        <div class="weui-cell__bd">
                            <p>男</p>
                        </div>
                    </label>
                    <label class="weui-cell weui-check__label" for="s12">
                        <div class="weui-cell__hd">
                            <input type="radio" name="value" value="2" class="weui-check" id="s12" {eq name="value" value="2"} checked{/eq}>
                            <i class="weui-icon-checked"></i>
                        </div>
                        <div class="weui-cell__bd">
                            <p>女</p>
                        </div>
                    </label>
                    <label class="weui-cell weui-check__label" for="s13">
                        <div class="weui-cell__hd">
                            <input type="radio" name="value" value="0" class="weui-check" id="s13" {eq name="value" value="0"} checked{/eq}>
                            <i class="weui-icon-checked"></i>
                        </div>
                        <div class="weui-cell__bd">
                            <p>保密</p>
                        </div>
                    </label>
                </div>
                {/eq}
                {eq name="field" value="birthday"}
                <div class="weui-cells weui-cells_form">
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">生日</label></div>
                        <div class="weui-cell__bd">
                            <input style="border:none" type="date" name="value" value="{gt name='value' value='0'}{$value|date='Y-m-d',###} {else /} 年/月/日{/gt}" />
                        </div>
                    </div>
                </div>
                {/eq}
                <input type="hidden" name="type" value="{$type}" />
                <input type="hidden" name="field" value="{$field}" />
            </form>
        </div>
    </div>

</div>
{/block}

{block name="javascript"}
<script src="/static/wechat/js/login_form.js?v={php}echo time(){/php}"></script>
{/block}